package com.boarsoft.flow.demo.test;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import com.boarsoft.common.util.RandomUtil;
import com.boarsoft.flow.core.SimpleFlowEngine;
import com.boarsoft.flow.core.bean.ProcessHandler;

public class Submit1PH implements ProcessHandler {
	@Autowired
	private SimpleFlowEngine flowEngine;
	
	@Override
	public Object process(String entry, Object data, Throwable throwable) throws Throwable {
		Map<String, Object> m = new HashMap<>();
		m.put("a.b", "1000");
		flowEngine.submit("mvel", RandomUtil.genUUID(), m, null);
		return data;
	}
}
